import pytest,logging,yagmail

def log_set():
    logging.basicConfig(filename='log.log',filemode='a+',level=logging.DEBUG,format="%(levelname)s -> %(asctime)s -> %(message)s")

def send_mail(filepath):
    mail=yagmail.SMTP(user="1508523002@qq.com",password="bgbsnkdrydkgbagf",host="smtp.qq.com")
    send_mail=mail.send(to="1508523002@qq.com",subject="")

if __name__ == '__main__':
    log_set()
    pytest.main(['test_a3mall.py','-s','--alluredir=./baogao','--clean-alluredir'])
    import os
    os.system("allure generate ./baogao -o ./html --clean")
